package com.exam.mapper;

import com.exam.po.Admin;
import com.exam.po.AdminExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AdminMapper {
    int countByExample(AdminExample example);

    int deleteByExample(AdminExample example);

    int deleteByPrimaryKey(Integer adminid);

    int insert(Admin record);

    int insertSelective(Admin record);

    List<Admin> selectByExample(AdminExample example);

    Admin selectByPrimaryKey(Integer adminid);

    int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    /*
     * @Author mahaoqi
     * @Description 管理员登录
     * @Date 2021/1/13 10:58
     * @Param [adminid, pwd]
     * @return com.exam.po.Admin
     **/
    Admin findByIdAndPwd(@Param("adminid") Integer adminid,@Param("pwd") String pwd);
}